package ro.qi.framework.sys.common;

import ro.qi.framework.sys.i18n.common.Internationalizable;

public class PersonGenderCollection extends Internationalizable {

	public static String GENDER_MALE = "m";
	public static String GENDER_FEMALE = "f";
	
	public PersonGenderCollection(int localeId) {
		setLocaleId(localeId);
	}

	public int getCollectionSize() {
		return 2;
	}
	
	public String getId(int index) {
		if (index == 0) {
			return GENDER_MALE;
		} else if (index == 1) {
			return GENDER_FEMALE;
		} else {
			return "";
		}
	}

	public PersonGender getGender(int index) {
		return new PersonGender(getId(index));
	}

}
